﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ymca.Web.Services.Interfaces;
using Ymca.Entities;
using System.Web.Security;

namespace Ymca.Web.Services
{
    public class CommentBuilder: ICommentBuilder
    {
        public Comment Create(int postId, string userName, string body)
        {
			Comment comment = new Comment()
			{
				PostId = postId,
				Date = DateTime.Now,
				Body = body,
				UserName = userName
			};
			return comment;
        }
    }
}